<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<portlet:defineObjects />

<h1>User</h1>
<portlet:actionURL var="edituserURL">
	<portlet:param name="action" value="edituser"/>
</portlet:actionURL>
<table border="1">
	
	<thead>
		<td>ID User</td>
		<td> User Name</td>
		<td>Email</td>
		<td>Edit</td>
	</thead>
	<c:forEach items="${listUser}" var="e">
		<tr>
			<td>${e.idUser}</td>
			<td>${e.userName}</td>
			<td>${e.email}</td>
			<td><form action="${edituserURL}" method="post">
				<input type="hidden" name='<portlet:namespace/>fkUser' value="${e.idUser}"/>
				<input type="hidden" name='<portlet:namespace/>fkFaculty' value="${e.fkFaculty}"/>
				<input type="submit" value="Edit"/>
			</form></td>
		</tr>
	</c:forEach>
</table>